/*
 * sys_call.cpp
 *
 *  Created on: Jul 30, 2009
 *      Author: almogmo
 */

#include "sys_call.h"



SysCalls::SysCalls(FileSystem *fileSystem){
	this->_fileSystem = fileSystem;
	this->createOpenFileTable();
}

void SysCalls::createOpenFileTable(){
	this->_openFileTable = new fdt_entry[OPEN_FDT_SIZE];
	int i;
	for (i = 0; i < OPEN_FDT_SIZE; ++i) {
		this->_openFileTable[i].iNode = NONE;
	}
}
